package com.ssy.lingxi.member.merchant.model.vo.basic.response;

import java.io.Serializable;
import java.util.Objects;

/**
 * 角色查询返回的参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-08-25
 */
public class RoleIdAndNameVO implements Serializable {
    private static final long serialVersionUID = -5230692369228471735L;

    public RoleIdAndNameVO() {
    }

    public RoleIdAndNameVO(Long roleId, String roleName) {
        this.roleId = roleId;
        this.roleName = roleName;
    }

    /**
     * 角色Id
     */
    private Long roleId;

    /**
     * 角色名称
     */
    private String roleName;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoleIdAndNameVO that = (RoleIdAndNameVO) o;
        return Objects.equals(roleId, that.roleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(roleId);
    }
}
